#include <stdio.h>
#include <stdlib.h>
typedef struct Node
{
    int data;
    struct Node* next;
}node;
node* create(int a[],int n)
{
    node* head = (node*)malloc(sizeof(node));
    head->next = NULL;

    node* cur = head;
    int i=0;
    while( i<n )
    {
        node* newnode = (node*)malloc(sizeof(node));
        newnode->next = NULL;
        newnode->data = a[i];
        i++;
        cur->next = newnode;
        cur = newnode;
    }
    return head;
}
void sum (node*head1,node*head2)
{
    node*cur1 = head1->next;
    node*cur2 = head2->next;
    while(cur1 ||cur2)
    {
        cur1-> data = cur1->data + cur2->data;
        cur1 = cur1->next;
        cur2 = cur2->next;
    }
}
void print(node*head)
{
    node*cur = head->next;
    while(cur)
    {
        printf("%d ",cur->data);
        cur = cur->next;
    }
}
int main()
{
    int n;
    scanf("%d",&n);
    int a[n],b[n];
    int i;
    for( i=0;i<n;i++)
    {
        scanf("%d",&a[i]);
    }
        for( i=0;i<n;i++)
    {
        scanf("%d",&b[i]);
    }
    node*link1 = create(a,n);
    node*link2 = create(b,n);
    sum(link1,link2);
    print(link1);
    return 0;
}
